/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

/**
 *
 * @author JorgeLuis
 */
public class mainWindowsView extends javax.swing.JFrame {

    /**
     * Creates new form mainWindowsView
     */
    public mainWindowsView() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelLeft = new javax.swing.JScrollPane();
        panelCenter = new javax.swing.JPanel();
        panelRight = new javax.swing.JScrollPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        itemOpen = new javax.swing.JMenuItem();
        itemCreate = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        itmeSave = new javax.swing.JMenuItem();
        itemSaveAs = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        itemDataBase = new javax.swing.JMenu();
        itemImport = new javax.swing.JMenuItem();
        itemExport = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        itemExit = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        itemPutImage = new javax.swing.JMenuItem();
        itemRemoveImage = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().add(panelLeft, java.awt.BorderLayout.WEST);

        panelCenter.setBackground(new java.awt.Color(0, 204, 0));

        javax.swing.GroupLayout panelCenterLayout = new javax.swing.GroupLayout(panelCenter);
        panelCenter.setLayout(panelCenterLayout);
        panelCenterLayout.setHorizontalGroup(
            panelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 769, Short.MAX_VALUE)
        );
        panelCenterLayout.setVerticalGroup(
            panelCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 565, Short.MAX_VALUE)
        );

        getContentPane().add(panelCenter, java.awt.BorderLayout.CENTER);
        getContentPane().add(panelRight, java.awt.BorderLayout.EAST);

        jMenu1.setText("File");

        itemOpen.setText("Open Proyect");
        jMenu1.add(itemOpen);

        itemCreate.setText("Create Proyect");
        jMenu1.add(itemCreate);
        jMenu1.add(jSeparator3);

        itmeSave.setText("Save");
        jMenu1.add(itmeSave);

        itemSaveAs.setText("Save As");
        jMenu1.add(itemSaveAs);
        jMenu1.add(jSeparator2);

        itemDataBase.setText("Data Base");

        itemImport.setText("Import");
        itemDataBase.add(itemImport);

        itemExport.setText("Export");
        itemExport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemExportActionPerformed(evt);
            }
        });
        itemDataBase.add(itemExport);

        jMenu1.add(itemDataBase);
        jMenu1.add(jSeparator1);

        itemExit.setText("Exit");
        jMenu1.add(itemExit);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");

        jMenu4.setText("Image");

        itemPutImage.setText("put Image");
        jMenu4.add(itemPutImage);

        itemRemoveImage.setText("remove Image");
        jMenu4.add(itemRemoveImage);

        jMenu2.add(jMenu4);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void itemExportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemExportActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_itemExportActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(mainWindowsView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(mainWindowsView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(mainWindowsView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(mainWindowsView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new mainWindowsView().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem itemCreate;
    private javax.swing.JMenu itemDataBase;
    private javax.swing.JMenuItem itemExit;
    private javax.swing.JMenuItem itemExport;
    private javax.swing.JMenuItem itemImport;
    private javax.swing.JMenuItem itemOpen;
    private javax.swing.JMenuItem itemPutImage;
    private javax.swing.JMenuItem itemRemoveImage;
    private javax.swing.JMenuItem itemSaveAs;
    private javax.swing.JMenuItem itmeSave;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPanel panelCenter;
    private javax.swing.JScrollPane panelLeft;
    private javax.swing.JScrollPane panelRight;
    // End of variables declaration//GEN-END:variables

    public void setPanelCenter(layerView layerView) {
        this.panelCenter.removeAll();
        this.panelCenter.add(layerView);
        this.repaint();
        
    }

    public void setPanelLeft(menuView menuView) {
        this.panelLeft.setViewportView(menuView);
    }

    public void setPanelRight(treeView treeView) {
        this.panelRight.setViewportView(treeView);
    }

    
        
}
